package 实现ArrayList类;

import java.util.ArrayList;

public class Test {

    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(0);
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.display();
        System.out.println();
        myArraylist.add(2,99);
        myArraylist.display();
        System.out.println();
        myArraylist.remove(3);
        myArraylist.display();
        System.out.println();
        System.out.println(myArraylist.size());
        myArraylist.clear();
        myArraylist.display();
    }
}
